/* DONATION SECTION */
.donation-popup-title {
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* optional: center whole line */
  gap: 8px;
  /* space between text & logo */
}

.donate-group {
  display: flex;
  align-items: center;
}

.donate-currency {
  padding: 8px 8px 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.donate-input {
  width: 50px;
  padding: 8px 10px 8px 0;
  border: 1px solid #e5e7eb;
  border-left: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  text-align: left;
  outline: none;
}

.donate-btn {
  padding: 8px 12px;
  background: #7ed957;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 60px;
}

.donate-btn:hover {
  background: #6bc943;
}

@media (max-width: 768px) {
  .main-header {
    padding: 14px 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-nav {
    position: static;
    transform: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }

  .header-donate {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-text h1 {
    font-size: 18px;
  }
}

/* DONATION SECTION */
.header-donate {
  display: flex;
  gap: 8px;
  align-items: center;
}

.donate-group {
  display: flex;
  align-items: center;
}

.donate-currency {
  padding: 8px 8px 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.donate-input {
  width: 50px;
  padding: 8px 10px 8px 0;
  border: 1px solid #e5e7eb;
  border-left: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  text-align: left;
  outline: none;
}

.donate-btn {
  padding: 8px 12px;
  background: #7ed957;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 60px;
}

.donate-btn:hover {
  background: #6bc943;
}

@media (max-width: 768px) {
  .main-header {
    padding: 14px 20px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-nav {
    position: static;
    transform: none;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }

  .header-donate {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-text h1 {
    font-size: 18px;
  }
}

/* Donation Popup Styles */
.donation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-popup-modal {
  background: #fff;
  border-radius: 12px;
  width: 350px;
  /* EXACT width */
  height: 275px;
  /* EXACT height */
  padding: 30px 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow: hidden;
  /* prevents size breaking */
}

.donation-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #71717a;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
  z-index: 10;
}

.donation-popup-close:hover {
  background: #52525b;
}

.donation-popup-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #111827;
}

.donation-popup-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-donate-group {
  justify-content: center;
  display: inline-flex;
  align-items: stretch;
}

.popup-donate-group .donate-currency {
  padding: 8px 8px 8px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
}

.popup-donate-group .donate-input {
  width: 50px;
  padding: 8px 10px 8px 0;
  border: 1px solid #e5e7eb;
  border-left: none;
  border-right: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  text-align: center;
  outline: none;
}

.donate-btn-display {
  padding: 8px 14px;
  background: #7ed957;
  color: #fff;
  border: 1px solid #7ed957;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

#paypal-button-container {
  width: 168px;
  margin: 15px auto 10px auto;
}

.donation-popup-powered {
  font-size: 13px;
  color: #666;
  margin-top: 15px;
  margin-bottom: 0;
}

.paypal-text {
  color: #003087;
  font-weight: 600;
  font-style: italic;
}

.paypal-text-pal {
  color: #009cde;
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 480px) {
  .donation-popup-modal {
    padding: 25px 20px;
    margin: 15px;
  }

  .donation-popup-inputs {
    gap: 10px;
  }
}

/* ===== SHARED HEADER STYLES (MUST MATCH ALL PAGES) ===== */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  position: relative;
  z-index: 10;
}

.top-left {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: inherit;
}

.brand-link:hover {
  text-decoration: none;
}

.logo-money {
  height: 34px;
  width: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #6b7280;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 22px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.header-nav a:hover {
  color: #7ed957;
}

/* DONATION SECTION */
.header-donate {
  display: flex;
  gap: 8px;
  align-items: center;
}

.donate-group {
  display: flex;
  align-items: center;
}

.header-donate .donate-group {
  display: flex !important;
  align-items: stretch !important;
}

.header-donate .donate-currency {
  padding: 8px 8px 8px 12px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-right: none !important;
  border-radius: 4px 0 0 4px !important;
  font-size: 14px !important;
  font-weight: 500;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.header-donate .donate-input {
  width: 50px !important;
  padding: 8px 10px 8px 0 !important;
  border: 1px solid #e5e7eb !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 500;
  color: #374151;
  background: #fff !important;
  text-align: left;
  outline: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}

.header-donate .donate-input::-webkit-outer-spin-button,
.header-donate .donate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.header-donate .donate-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
}

.header-donate .donate-btn {
  padding: 8px 12px !important;
  background: #7ed957 !important;
  color: #fff !important;
  border: 1px solid #7ed957 !important;
  border-radius: 0 4px 4px 0 !important;
  font-size: 13px !important;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.header-donate .donate-btn:hover {
  background: #6bc943 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .main-header {
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .top-left {
    width: 100%;
    order: 1;
    display: flex;
    justify-content: center;
  }

  .brand-link {
    gap: 16px;
    justify-content: center;
  }

  .logo-money {
    height: 32px;
  }

  .brand-text {
    text-align: center;
  }

  .brand-text h1 {
    font-size: 20px;
    margin: 0;
  }

  .brand-text span {
    font-size: 10px;
    margin-top: 4px;
  }

  .header-nav {
    position: static;
    transform: none;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    order: 2;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-nav a {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header-donate {
    order: 3;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  .header-donate .donate-group {
    flex: 0 0 auto;
  }

  .header-donate .donate-input {
    width: 45px !important;
    font-size: 13px !important;
  }

  .header-donate .donate-btn {
    font-size: 12px !important;
    padding: 8px 14px !important;
    min-width: 65px;
  }
}

/* ===== END SHARED HEADER STYLES ===== */

.efb-footer {
  background: #f8fafc;
  padding: 60px 0 28px;
  border-top: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.efb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.efb-footer-columns {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.efb-footer-col {
  flex: 1;
}

.efb-footer-col-right {
  max-width: 420px;
  text-align: right;
}

.efb-footer-heading {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 14px;
}

.efb-footer-link {
  display: block;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  margin-bottom: 6px;
}

.efb-footer-link:hover {
  color: #7ed957;
}

.efb-footer-copy {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.efb-footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.efb-social-btn {
  width: 34px;
  height: 34px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
}

.efb-social-btn:hover {
  background: #7ed957;
  color: #000;
}

.efb-footer-links-secondary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.efb-footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}

.efb-powered-name {
  color: #7ed957;
  font-weight: 700;
  margin-left: 4px;
  text-decoration: none;
}

.efb-powered-name:hover {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
  .efb-footer-inner {
    padding: 0 20px;
  }

  .efb-footer-columns {
    flex-direction: column;
    gap: 28px;
  }

  .efb-footer-col-right,
  .efb-footer-social,
  .efb-footer-links-secondary {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }
}

/* TERMS & CONDITIONS PAGE */

.terms-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.terms-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.terms-box h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.terms-updated {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

.terms-box h3 {
  margin-top: 25px;
  font-size: 20px;
}

.terms-box p,
.terms-box li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.terms-box ul {
  padding-left: 20px;
}

@media (max-width: 600px) {
  .donation-popup-modal {
    width: 92vw;
    height: auto;
    max-height: 90vh;
    padding: 25px 20px;
  }
}

/* INR Support Popup Refinements */
.inr-popup-modal {
  width: 420px;
  height: auto;
  padding: 28px 30px;
  border-radius: 16px;
}

.inr-popup-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.inr-qr-section {
  flex: 0 0 auto;
  text-align: center;
}

.inr-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inr-qr-label {
  font-size: 11px;
  color: #6b7280;
  margin: 6px 0 0;
}

.inr-bank-details {
  flex: 1;
  text-align: left;
}

.inr-bank-table {
  width: 100%;
  border-collapse: collapse;
}

.inr-bank-table td {
  padding: 5px 6px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.inr-bank-table td:first-child {
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  width: 55px;
  font-size: 11px;
}

.inr-bank-table td:last-child {
  font-weight: 600;
  color: #18181b;
}

.donation-popup-powered {
  font-size: 14px;
  color: #52525b;
  margin-top: 5px;
}

@media (max-width: 480px) {
  .inr-popup-modal {
    width: 92vw;
    padding: 22px 16px;
  }

  .inr-qr-img {
    width: 110px;
    height: 110px;
  }

  .inr-bank-table td {
    font-size: 11px;
    padding: 4px 4px;
  }

  .inr-bank-table td:first-child {
    font-size: 10px;
    width: 48px;
  }
}

/* =========================
   MOBILE FIX – TERMS PAGE
   ========================= */

@media (max-width: 768px) {

  /* TERMS CONTAINER FIX (header uses shared mobile styles) */
  .terms-container {
    margin: 20px auto;
    padding: 10px;
  }

  .terms-box {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .terms-box h2 {
    font-size: 24px;
  }

  .terms-updated {
    font-size: 13px;
  }

  .terms-box h3 {
    font-size: 18px;
    margin-top: 20px;
  }
}

.terms-box p,
.terms-box li {
  font-size: 14px;
  line-height: 1.65;
}


/* EXTRA SMALL DEVICES */
@media (max-width: 420px) {

  .header-nav {
    gap: 14px;
  }

  .header-nav a {
    font-size: 13px;
  }

  .terms-box {
    padding: 20px 15px;
  }

  .terms-box h2 {
    font-size: 22px;
  }
}